

package com.embedsky.administrator.mycardreader.message;

/**
 * @Des:
 * @Author: hang.zhao
 * @Date: 2023/2/28
 */
public class SocketMessage {

    public static int MESSAGE_SEND = 0;
    public static int MESSAGE_RECEIVE = 1;

    private String data;
    private int type;

    public SocketMessage() {
    }

    public SocketMessage(String data, int type) {
        this.data = data;
        this.type = type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public int getType() {
        return type;
    }

    @Override
    public String toString() {
        return "SocketMessage{" +
                "data='" + data + '\'' +
                ", type=" + type +
                '}';
    }
}
